<%--
    Document   : error
    Created on : 03.10.2010, 17:32:47
    Author     : nico.rehwaldt
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="u" uri="http://nixis.de/jsp/tags/core" %>

<html>
    <head>
        <title>Dependencies between tasks extracted using association mining</title>
        <style type="text/css">
            .dependency-holder, .dependency-holder li, .dependency-holder ul {
                list-style: none;
                padding: 0;
                margin: 0;
            }
            
            .dependency-holder > li {
                background-color: #CCC;
                margin: 5px 0 5px 0;
            }
            
            .dependency-holder > li > div {
                
            }
            
            .target {
                width: 40%;
            }
            
            .base {
                width: 60%;
            }
            
            .target, .base {
                margin: 5px 0 5px 0;
                display: inline-block;
            }
            
            .statistics {
                background-color: #BBB;
            }
        </style>
    </head>
    <body>
        <h1>Dependencies between tasks extracted using association mining</h1>
        <ul class="dependency-holder">
            <c:forEach items="${it.rules}" var="rule">
                <li>
                    <div class="target">
                        <a href="<u:url value="/article/${rule.target.sluggedId}" />">${rule.target.title}</a>
                        <div class="statistics">${rule.associationAccuracy}</div>
                    </div>
                    <div class="base">
                        <ul>
                            <c:forEach items="${rule.base}" var="base">
                                <li>
                                    <a href="<u:url value="/article/${base.sluggedId}" />">${base.title}</a>
                                </li>
                            </c:forEach>
                        </ul>
                        
                        <div class="statistics">${rule.baseAccuracy}</div>
                    </div>
                </li>
            </c:forEach>
        </ul>
    </body>
</html>